export const statusOptions = [
  { key: 'DRAFT', display_name: '待发布' },
  { key: 'PUBLISHED', display_name: '已发布' },
  { key: 'CLOSED', display_name: '已下架' }
]

export const stautsFilterOptions = [
  { value: 'DRAFT', text: '待发布' },
  { value: 'PUBLISHED', text: '已发布' },
  { value: 'CLOSED', text: '已下架' }
]

export const statusKeyValue = statusOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const statusMap = {
  DRAFT: 'info',
  PUBLISHED: 'success',
  CLOSED: 'danger'
}
